//========encoding:utf-8=========
/*
 * @describe:  三目运算符
 * @author:mhao
 * @copyright:chinasoft.cn
 * @date:2020年3月30日   下午3:31:25
 */
package edu.chinasoft.service;

import java.util.List;
import java.util.Map;

import edu.chinasoft.domain.Application;
import edu.chinasoft.domain.PageUnitForApplication;
import edu.chinasoft.domain.Role;
import edu.chinasoft.domain.User;

public interface ApplicationService {
	PageUnitForApplication getRecordNumById(User user);
	List<Application> selectUnitApplicationById(Map<String, Object> map);
	
	Role selectRoleByUser(User user);
	List<User> selectUserByRole(Role role);
	boolean insertApplication(Application addApplication);
	
	 PageUnitForApplication getNoSubmitApplicationRecordById(User user);
	 List<Application> selectNoSubmitApplicationById(Map<String,Object> map);
	 
	 Application selectApplicationById(Application application);
	 boolean updateApplicationById(Application application);
	 
	 boolean deleteApplication(Application application);
	 PageUnitForApplication getApprovalApplicationRecordById(User user);
	 List<Application> selectApprovalApplicationById(Map<String,Object> map);
	PageUnitForApplication selectApplicationById(User user);
}
